<?php

namespace UF\AccountBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * UF\AccountBundle\Entity\guest
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Guest
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $firstName
     *
     * @ORM\Column(name="firstName", type="string", length=255)
     */
    private $firstName;

    /**
     * @var string $lastName
     *
     * @ORM\Column(name="lastName", type="string", length=255)
     */
    private $lastName;

    /**
     * @var string $email
     *
     * @ORM\Column(name="email", type="string", length=255, unique=true)
     */
    private $email;
    
    /**
     * @ORM\ManyToOne(targetEntity="Account", inversedBy="guests")
     * @ORM\JoinColumn(name="accountId", referencedColumnName="id")
     */
    private $account;

    /**
     * @ORM\ManyToOne(targetEntity="Nationality", inversedBy="guests")
     * @ORM\JoinColumn(name="nationalityId", referencedColumnName="id")
     */
    private $nationality;

    //Getters and setters
    public function getId()    {        return $this->id;    }
    public function setFirstName($firstName)    {        $this->firstName = $firstName;    }
    public function getFirstName()    {        return $this->firstName;    }
    public function setLastName($lastName)    {        $this->lastName = $lastName;    }
    public function getLastName()    {        return $this->lastName;    }
    public function setEmail($email)    {    	$this->email = $email;    }
    public function getEmail()    {    	return $this->email;    }
    public function setAccount(Account $account)    {        $this->account = $account;    }
    public function getAccount()    {        return $this->account;    }
    public function setNationality(Nationality $nationality)    {        $this->nationality = $nationality;    }
    public function getNationality()    {        return $this->nationality;    }
    
}